package cn.edu.bupt.webapi.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;


@Data
public class Todo {
    //主键注解,数据库 ID 自增
    @TableId(type= IdType.AUTO)
    private Long id;

    @NotBlank
    @Size(min = 0, max = 255)
    private String content;
}
